//
//  ParkingTimeTableViewCell.m
//  WWXELuShang
//
//  Created by lanou on 15/12/23.
//  Copyright © 2015年 lanou. All rights reserved.
//

#import "ParkingTimeTableViewCell.h"

@implementation ParkingTimeTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self.contentView addSubview:self.timeLabel];
        
        [self.selectedBackgroundView addSubview:self.checkView];
    }
    return self;
}


- (UIImageView *)checkView {
    if (!_checkView) {
        _checkView = [[UIImageView alloc] initWithFrame:CGRectMake(0 , 0, kWidth / 20, kWidth / 20)];
        _checkView.center = CGPointMake(kWidth - kWidth / 20, self.center.y);
        _checkView.image = [UIImage imageNamed:@"check"];
    }
    return _checkView;
}

- (UILabel *)timeLabel {
    
    if (!_timeLabel) {
        _timeLabel = [[UILabel alloc] initWithFrame:CGRectMake(kWidth / 20, 0, kWidth / 2, self.frame.size.height)];
    }
    return _timeLabel;
    
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
